-- GENERATED SPELL FOR [Tempest-Forge Peacekeeper] --


function spell0_18405(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(34793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18405', 562, 1)
end

function spell1_18405(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(34791,pUnit)
pUnit:RegisterEvent('Sorts_18405', 1500, 1)
end

function spell2_18405(pUnit, Event) --@Arcane Volley,n/a--
pUnit:FullCastSpellOnTarget(34785,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18405', 1000, 1)
end

function Sorts_18405(pUnit, Event)
local choix_sorts_18405 = math.random(0, 2)
if choix_sorts_18405 == 0 then
pUnit:RegisterEvent('spell0_18405', 1, 1)
end
if choix_sorts_18405 == 1 then
pUnit:RegisterEvent('spell1_18405', 1, 1)
end
if choix_sorts_18405 == 2 then
pUnit:RegisterEvent('spell2_18405', 1, 1)
end
end

function mob18405_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18405', math.random(1500, 3000), 1)
end

function mob18405_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18405_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18405_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18405, 1, 'mob18405_Action')
RegisterUnitEvent(18405, 2, 'mob18405_Leave')
RegisterUnitEvent(18405, 3, 'mob18405_Kill')
RegisterUnitEvent(18405, 4, 'mob18405_Die')
